// pages/userConsole/userConsole.js
var app = getApp();
var baseUrl = app.globalData.host;
Page({

  data: {
    tlrCode: '',
    smTeller:{}
  },

  onLoad: function (options) {
    var that = this;
    console.info(options.tlrCode)
    that.setData({
      tlrCode: options.tlrCode
    })
    let obj = {
      tlrCode: options.tlrCode
    }
    wx.request({
      url: baseUrl+"/user/selectSmTeller",
      method: 'POST',
      data: obj,
      header: {
          'content-type': 'application/json'
      },
      dataType: 'json',
      success: function(res) { 
          that.setData({
            smTeller:res.data.data
          });
      },
      fail: function(res) {
          wx.showToast({
          title: '服务器网络错误,请稍后重试',
          icon: 'loading',
          duration: 1500
          })
      },
      complete: function(res) {
      },
  })
  }
})